package com.by.goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@TableName("spu_detail")
@Data
public class SpuDetail {

    @TableId(value = "spu_id",type = IdType.INPUT)
    Integer spuId;

    String name;

    String detail;
    /**
     * 店铺id
     */

    @TableField(exist = false)
    private int shopId;

    /**
     * 商品图片 多个图片逗号分隔
     */
    @TableField(exist = false)
     private List<String> imgUrls;

    /**
     * 商品视频
     */
    @TableField(exist = false)
    private String video;

    /**
     * 售价，整数方式保存
     */
    @TableField(exist = false)
    private double priceFee;

    @TableField(exist = false)
    List<Sku2> skuList;

    @TableField(exist = false)
    List<Attr> attrList;
}
